Studying Duplicate Logging Statements and Their Relationships With Code Clones
نویسندگان
چکیده
In this paper, we focus on studying duplicate logging statements, which are statements that have the same static text message. We manually studied over 4K and their surrounding code in five large-scale open source systems. uncovered patterns of smells. For each instance smell, further identify potentially problematic justifiable cases. Then, contact developers to verify our manual study result. integrated result feedback into automated analysis tool, DLFinder, automatically detects evaluated DLFinder systems three additional total, combining results analysis, reported 91 smell instances all them been fixed. relationship between including smells, clones. find 83% reside cloned code, but 17% micro-clones difficult detect using clone detection tools. also more than half snippets, a large portion very short blocks may not be effectively detected by existing Our shows that, addition general implements business logic, clones bad practices could increase maintenance difficulties.
منابع مشابه
Duplicate Code Detection using Control Statements
Code clone detection is an important area of research as reusability is a key factor in software evolution. Duplicate code degrades the design and structure of software and software qualities like readability, changeability, maintainability. Code clone increases the maintenance cost as incorrect changes in copied code may lead to more errors. In this paper we address structural code similarity ...
متن کاملevolutionary origin and phylogenetic relationships among fusarium oxysporum f. sp. melonis isolates in iran and their relationship with nonpathogenic isolates
پژمردگی فوزاریومی خربزه و طالبی با عامل fusarium oxysporum f. sp. melonis از بیماری های مهم قارچی در مناطق رشد این گیاهان می باشد. جدایه های f. oxysporum از گیاهان و خاک ریزوسفر متعلق به پنج استان مهم تولیدکننده ی خربزه و طالبی جداسازی شد و بر پایه ی بیماری زایی در ارقام افتراقی، گروه های سازگاری رویشی (vegetative compatibility groups)، توالی سنجی ناحیه ی جداکننده ی بین ژنی دی اِن اِی ریبوزومی (n...
15 صفحه اولLocal Independence Transformation and Its Application to Removing Nonduplicate Statements in Code Clones
This paper proposes a new program transformation technique and describes its application to removing nonduplicate statements in code clones while preserving the semantics of the program. Allowing nonduplicate statements in code clones helps in finding larger code clones. However, the nonduplicate statements in code clones may induce unexpected difficulty and complexity when we analyze the softw...
متن کاملCode for nurses with interpretive statements.
The development ol a code of ethics is an essential characteristic of a profession and provides one means for the exercise of professional self-regulation. A code indicates a profession's acceptance of the responsibility and trust with which it has been invested by society. Upon entering the profession ol nursing, each person inherits a measure of the responsibility and trust that has accrloe.....
متن کاملActive Clones: Source Code Clones at Runtime
Code cloning is a common programming practice, and there have been a considerable amount of research that investigated the implications of code clones on software maintenance using static analysis. However, little has been done to investigate the runtime implications of code cloning. In this paper we investigate source code clones at runtime, referring to clones as ‘active clones’ if they are i...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: IEEE Transactions on Software Engineering
سال: 2022
ISSN: ['0098-5589', '1939-3520', '2326-3881']
DOI: https://doi.org/10.1109/tse.2021.3060918